package org.luxor.commons.websocket.component.protocol;

import org.luxor.commons.core.utils.Jackson2Utils;

/**
 * 移除指令
 *
 * @author Mr.yan  @date 2021/9/4
 */
public class RemoveCommand extends AbstractCommand {

    private String command;
    private String token;

    public RemoveCommand() {
        // An empty constructor
    }

    public RemoveCommand(String token) {
        this.command = REMOVE_COMMAND;
        this.token = token;
    }

    @Override
    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toJson() {
        return Jackson2Utils.toJson(this);
    }
}
